﻿using SHZY.Common.Const;
using SHZY.Common.Contracts;
using SqlSugar;

namespace SHZY.Business.Entitys.WMS.Entity;

/// <summary>
/// 上架任务实体.
/// </summary>
[SugarTable("wms_busi_shelfup_task", "上架任务")]
[Tenant(ClaimConst.TENANTID)]
public class WmsBusiShelfupTaskEntity : CLDEntityBase
{
    /// <summary>
    /// 上架编号.
    /// </summary>
    [SugarColumn(ColumnName = "F_TaskNo", ColumnDescription = "上架编号")]
    public string TaskNo { get; set; }

    /// <summary>
    /// 上架类型：1 原材料 2 半成品 3 成品 .
    /// </summary>
    [SugarColumn(ColumnName = "F_Type", ColumnDescription = "上架类型：1 原材料 2半成品 3成品 ")]
    public string Type { get; set; }

    /// <summary>
    /// 订单编号.
    /// </summary>
    [SugarColumn(ColumnName = "F_OrderNo", ColumnDescription = "订单编号")]
    public string OrderNo { get; set; }

    /// <summary>
    /// 单据类型：1 工单成品 2 其他成品.
    /// </summary>
    [SugarColumn(ColumnName = "F_OrderType", ColumnDescription = "单据类型：1 工单成品 2 其他成品")]
    public string OrderType { get; set; }

    /// <summary>
    /// 物料id.
    /// </summary>
    [SugarColumn(ColumnName = "F_MaterialId", ColumnDescription = "物料id")]
    public string MaterialId { get; set; }

    /// <summary>
    /// 物料编码.
    /// </summary>
    [SugarColumn(ColumnName = "F_MaterialCode", ColumnDescription = "物料编码")]
    public string MaterialCode { get; set; }

    /// <summary>
    /// 物料名称.
    /// </summary>
    [SugarColumn(ColumnName = "F_MaterialName", ColumnDescription = "物料名称")]
    public string MaterialName { get; set; }

    /// <summary>
    /// 批次号.
    /// </summary>
    [SugarColumn(ColumnName = "F_BatchNo", ColumnDescription = "批次号")]
    public string BatchNo { get; set; }

    /// <summary>
    /// 数量.
    /// </summary>
    [SugarColumn(ColumnName = "F_Qty", ColumnDescription = "数量")]
    public decimal Qty { get; set; }

    /// <summary>
    /// 条码（非成品用）.
    /// </summary>
    [SugarColumn(ColumnName = "F_Barcode", ColumnDescription = "条码（非成品用）")]
    public string Barcode { get; set; }

    /// <summary>
    /// 托盘号.
    /// </summary>
    [SugarColumn(ColumnName = "F_PalletNo", ColumnDescription = "托盘号")]
    public string PalletNo { get; set; }

    /// <summary>
    /// 操作时间.
    /// </summary>
    [SugarColumn(ColumnName = "F_OperatorDate", ColumnDescription = "操作时间")]
    public DateTime? OperatorDate { get; set; }

    /// <summary>
    /// 操作人.
    /// </summary>
    [SugarColumn(ColumnName = "F_Operator", ColumnDescription = "操作人")]
    public string Operator { get; set; }

    /// <summary>
    /// 状态：0 未上架 1 已上架 2 取消.
    /// </summary>
    [SugarColumn(ColumnName = "F_Status", ColumnDescription = "状态：0 未上架 1 已上架 2 取消")]
    public string Status { get; set; }

    /// <summary>
    /// 取消原因.
    /// </summary>
    [SugarColumn(ColumnName = "F_CancelReason", ColumnDescription = "取消原因")]
    public string CancelReason { get; set; }

    /// <summary>
    /// 库位ID.
    /// </summary>
    [SugarColumn(ColumnName = "F_LocationId", ColumnDescription = "库位ID")]
    public string LocationId { get; set; }

    /// <summary>
    /// 库位编码.
    /// </summary>
    [SugarColumn(ColumnName = "F_LocationCode", ColumnDescription = "库位编码")]
    public string LocationCode { get; set; }

    /// <summary>
    /// Site.
    /// </summary>
    [SugarColumn(ColumnName = "F_Site", ColumnDescription = "Site")]
    public string Site { get; set; }
}